# coding=utf-8

import logging
from flask import url_for
from . import app


logger = logging.getLogger('code')

@app.app.context_processor
def context_processor():

    def _qrcode(value):
        logger.info("qrcode value %s", value)
        return url_for('over.handlers.index._qrcode', h=value)

    return {'qrcode': _qrcode}

